package com.example.music.domain;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class Tags {
    @ApiModelProperty("标签序号")
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public String getDescriptions() {
        return descriptions;
    }

    public void setDescriptions(String descriptions) {
        this.descriptions = descriptions;
    }

    @ApiModelProperty("标签名字")
    @NotBlank(message = "产品名字不能为空")
    @Size(min = 2,max = 20,message = "产品名字长度必须在2-20之间")
    private String tName;

    @ApiModelProperty("标签描述")
    private String descriptions;
}
